﻿using Microsoft.AspNetCore.Mvc;
using Panda.DynamicWebApi.Attributes;
using Panda.DynamicWebApi;
using Farming.Domain;

namespace Farming.Application
{
    [DynamicWebApi]
    [ApiExplorerSettings(GroupName = "v1")]
    public class DataService: IDynamicWebApi
    {


        public List<Admin> GetUserList()
        {
            var userList = new List<Admin>();
            userList.Add(new Admin()
            {
                AdminId = 3,
                UserName = "张三",
                PassWord = "13344455566",
                LastLoginIp = "北京"
            });
            userList.Add(new Admin()
            {
                AdminId = 4,
                UserName = "李四",
                PassWord = "13322233344",
                LastLoginIp = "天津"
            });
            userList.Add(new Admin()
            {
                AdminId = 5,
                UserName = "王五",
                PassWord = "13355566677",
                LastLoginIp = "上海"
            });
            return userList;
        }

    }
}